@extends('public.layouts.main')
@section('style-link')
    <link rel="stylesheet" href="/plugins/datepicker/datepicker3.css">
@endsection
@section('menu')
    @include('public.department.menu')
@endsection
@section('content-header')
    <h5>
        <ol class="breadcrumb">
            <li><i class="fa fa-dashboard"></i> 党支部 （堡垒指数）</li>
            <li>加分中心</li>
            <li class="active">新建加分申请</li>
        </ol>
    </h5>
@endsection
@section('content')
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info">

                <!-- /.box-header -->
                <!-- form start -->
                <div class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">文章标题：</label>
                            <div class="col-sm-6">
                                <input type="hidden" class="increase-id" value="{!! $id !!}">
                                <input type="text" class="form-control increase-title" placeholder="文章标题">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">发布时间：</label>
                            <div class="col-sm-6">
                                <div class="input-group date">
                                    <div class="input-group-addon">
                                        <i class="fa fa-calendar"></i>
                                    </div>
                                    <input type="text" class="form-control increase-create-time" value="2019-01-01" readonly>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">内容：</label>

                            <div class="col-sm-10">
                                <div class="col-sm-12">
                                    <textarea  name="content" class="increase-content hidden"></textarea>
                                    <script id="editor" type="text/plain"></script>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">附件上传：</label>
                            <div class="col-sm-6 controls">
                                <div class="increase-attachment pull-left">
                                    <input type="hidden" name="increase_attachment" value="" class="upload-img-input increase-attachment">
                                    <div class="upload-img-attachment" style="position: relative;">
                                        <img class="img-increase-attachment" src="/img/boxed-bg.jpg" width="120" height="160">
                                    </div>
                                    <a id="text-attachment">上传附件</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <div class="col-sm-2"></div>
                        <div class="col-sm-10">
                            <a href="javascript:;" class="btn btn-success btn-save">保存</a>
                            <a href="/department/increase.html" class="btn btn-default pull-right">返回</a>
                        </div>
                    </div>
                    <!-- /.box-footer -->
                </div>
            </div>
        </div>
    </div>
@endsection
@section('script')
    <script src="/js/ajaxupload.js?v=1"></script>
    <script src="/plugins/datepicker/bootstrap-datepicker.js?v={!! time() !!}"></script>
    <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script src="/js/department/increase-edit.js?v={!! time() !!}"></script>
@endsection